cmake_minimum_required(VERSION 3.30)
project(gpt2)

set(CMAKE_CXX_STANDARD 23)

add_compile_options($<$<CONFIG:Release>:-Ofast>)

add_executable(gpt2 main.cpp
        function.cpp
        function.h
        gpt2.cpp
        gpt2.h)

find_package(OpenMP REQUIRED)
target_link_libraries(gpt2 PUBLIC OpenMP::OpenMP_CXX)
